package com.joysuch.wwyt.bp.entity.risk;

import com.joysuch.wwyt.core.support.AutoSetCommonFieldListener;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 风险研判-上报配置
 *
 * @Author ZhangDong
 * @Date 2020/3/3 15:57
 */
@Data
@Entity
@EntityListeners({AuditingEntityListener.class, AutoSetCommonFieldListener.class})
@Table(name = "WWYT_BP_JUDGE_REPORT_SETTING")
public class BpReportSetting {

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("企业负责人id")
    private Long enterpriseChargerId;

    @ApiModelProperty("企业负责人姓名")
    private String enterpriseChargerName;

    @ApiModelProperty("部门负责人id")
    private Long departChargerId;

    @ApiModelProperty("部门负责人姓名")
    private String departChargerName;

    @ApiModelProperty("特种作业类别json串")
    private String specialWorkType;

    @ApiModelProperty("企业负责人承诺")
    private String epChargerPromise;

    @ApiModelProperty("单位部门级承诺")
    private String departPromise;

    @ApiModelProperty("班组岗位级承诺")
    private String teamPromise;

    @ApiModelProperty("风险研判分析方法")
    private String riskJudgeMethod;

    @ApiModelProperty("上报模板")
    //写死
    private String reportModel="安全风险研判及安全承诺";


    //通用字段
    @ApiModelProperty("创建人")
    @org.springframework.data.annotation.CreatedBy
    private Long createBy;

    @ApiModelProperty("创建时间")
    @org.springframework.data.annotation.CreatedDate
    private java.time.LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @org.springframework.data.annotation.LastModifiedBy
    private Long updateBy;

    @ApiModelProperty("更新时间")
    @org.springframework.data.annotation.LastModifiedDate
    private java.time.LocalDateTime updateTime;

    @ApiModelProperty("更新人姓名")
    private String updateByName;

    @ApiModelProperty("租户")
    private Long tenentId;

    @ApiModelProperty("组织机构代码")
    private String orgCode;


}

